package cn.wapache.exception;

/**
 * 多次出现的,常用的抛异常的代码统一集中到这里
 * @author ykuang
 *
 */
public class Exceptions {
	
	public static IllegalArgumentException illegalArgument(String code, Object...values){
		return new I18nIllegalArgumentException(code,values);
	}
	
	public static IllegalStateException illegalState(String code, Object...values){
		return new I18nIllegalStateException(code,values);
	}
	
}
